﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WCS.Infrastructure.Dto.Response.Epaylinks;

namespace WCS.Infrastructure.Dto.Request.Payment
{
    /// <summary>
    /// 分账商户提现请求对象
    /// </summary>
    public class SplitWithdrawalRequestDto
    {
        /// <summary>
        /// 商户ID
        /// </summary>
        [StringLength(32)]
        public string MerId { get; set; }

        /// <summary>
        /// 提现金额，单位分
        /// </summary>
        public long Amount { get; set; }
    }


    public class SplitWithdrawalResponseDto:EpaylinksResponseDto
    {
        public string? OutTradeNo { get; set; }
        public string? SplitTransactionNo { get; set; }
        public string? OutSplitTradeNo { get; set; }

        public long Amount { get; set; }
        public decimal FeeRate { get; set; }
        public long Fee { get; set; }
        public long SendAmount { get; set; }
        public string Detail { get; set; }
        public DateTime CreationTime { get; set; }

        /// <summary>
        /// 收款人姓名
        /// </summary>
        public string? BankUserName { get; set; }

        /// <summary>
        /// 银行卡号
        /// </summary>
        public string? BankCardNo { get; set; }

        /// <summary>
        /// 银行名称
        /// </summary>
        public string? BankName { get; set; }
        public string? Phone { get; set; }
    }
}
